<?php
class CommonController extends CController{
        //ホームページ
    public function actionIndex(){
        if(isset(Yii::app()->user->logined)){
            $this->redirect(array('common/manager'));
        }else{
            $this->redirect(array('manager/login/login'));
        }
    }
    public function actionManager(){
        $this->layout='_layout';
        $this->render('manager',array('title'=>'Manager Consol'));
    }
}

